package config

import (
	"os"
	"strconv"
)

func GetTaskMax() int {
	TaskMax := 10
	TaskMaxStr := os.Getenv("TaskMax")
	var err error
	if TaskMaxStr != "" {
		TaskMax, err = strconv.Atoi(TaskMaxStr)
		if err != nil {
			TaskMax = 10
		}
	}
	return TaskMax
}
